#include "TCP_server.hpp"

void usage() {
  std::cout << "usage:\n./TCP_server port" << std::endl; 
  exit(1);
}

int main(int argc, char* argv[]) {
  if(argc != 2) {
    usage();
  }
  
  uint16_t port = atoi(argv[1]);
  TCP_server* serv = new TCP_server(port);
  serv->InitServer();
  serv->StartServer();

  return 0;
}
